import { dialog } from '@gis/lib/components/antd-dialog';

export function openPeopleDetailsDialog(data, showTab = []) {
  return dialog({
    content: () => import('./index.vue'),
    contentProps: {
      data: data,
      showTab: showTab,
    },
    dialogProps: {
      title: `${data.name}的个人详情`,
      width: 'large',
      height: 'fixed',
      footer: null,
      bodyStyle: { padding: 0 },
    },
  });
}
export function openBusinessInfoAddTagDialog(people_id) {
  return new Promise((resolve, reject) => {
    dialog({
      content: () => import('./components/business-info-add-tag.vue'),
      contentProps: { people_id },
      dialogProps: {
        title: '人员类别归置',
        onOk: () => resolve(true),
      },
    });
  });
}
